package com.principalservice.service;

import generator.domain.Holiday;
import com.baomidou.mybatisplus.extension.service.IService;
import generator.support.ResponseResult;
import generator.vo.likeHoliday;

import java.util.List;
import java.util.Map;

/**
* @author 杨健康
* @description 针对表【t_holiday】的数据库操作Service
* @createDate 2022-06-18 12:42:40
*/
public interface HolidayService extends IService<Holiday> {

    /**
     * 分页查询请假信息
     * @param page 页数
     * @param size 一页多少条数据
     * @return 请假信息
     */
    public List<Map<String, Object>> getAllHoliday();

    /**
     * 对请假信息模糊查询
     * @param likeHoliday
     * @return
     */
    public List<Map<String, Object>> likeHoliday(likeHoliday likeHoliday);

    /**
     * 添加请假信息
     */
    public ResponseResult<Object> addHoliday(likeHoliday likeHoliday);

    /**
     * 修改请假信息
     */
    public ResponseResult<Object> editHoli(likeHoliday likeHoliday);
}
